package com.chinacoal.hr.levelapi.client.fallback;

import com.chinacoal.hr.levelapi.client.ApprovalClient;
import com.chinacoal.hr.levelapi.client.response.Result;
import com.chinacoal.hr.levelapi.client.response.ResultCode;
import com.chinacoal.hr.levelapi.client.response.ResultGenerator;
import com.chinacoal.hr.levelapi.entity.AttendanceAppeal;
import com.chinacoal.hr.levelapi.entity.BizTravel;
import com.chinacoal.hr.levelapi.entity.LeaveRecord;

/**
 * Created by jinyabin on 2020/11/17.
 */
public class ApprovalClientFallback implements ApprovalClient {


    public Result travelInfo(String insCode) {
         return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    public Result travelApprove(String travelId, BizTravel record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    public Result travelApproveDisagree(String travelId, BizTravel record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    public Result appealInfo(String insCode) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    public Result appealApprove(String explainId, AttendanceAppeal attendanceAppeal) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    public Result appealApproveDisagree(String explainId, AttendanceAppeal attendanceAppeal) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    public Result leaveInfo(String insCode) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    public Result leaveApprove(String leaveId, LeaveRecord record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    public Result leaveApproveDisagree(String leaveId, LeaveRecord record) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }

    public Result historys(String processInstID, Object data) {
        return ResultGenerator.genFailedResult(ResultCode.REQUEST_FAILED);
    }
}
